﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using Table=FCNS.Data.Table;
using DoubleH.Utility;

namespace ReportS
{
    /// <summary>
    /// 毛利表.xaml 的交互逻辑
    /// </summary>
    public partial class 商品毛利表 : Window
    {
        public 商品毛利表()
        {
            InitializeComponent();

            InitVar();
            InitEvent();
        }

        IList<Table.ProductS> ps = null;

        private void InitVar()
        {
            uCdataGrid1.TableText = DataTableText.商品毛利表;

            checkComboBoxStore.ItemsSource = MainWindow.allStoreS;
            checkComboBoxStore.DisplayMemberPath = "Name";
            checkComboBoxStore.ValueMemberPath = "Id";
        }

        private void InitEvent()
        {
            buttonProductS.Click += (ss, ee) =>
                {
                    ps = null;
                    ProductS.GetProductS gps = new ProductS.GetProductS();
                    gps.Init(ProductS.GetProductS.EnumProductS.询价单商品, null);
                    gps.ShowDialog();
                    ps = gps.Selected;
                };

            buttonOK.Click += (ss, ee) => Search();
        }

        private void Search()
        {

        }
    }
}
